﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace myClient
{
    public class Dll
    {
        public class Shell32
        { 
            [DllImport("shell32.dll")]
            public static extern IntPtr ExtractIcon(IntPtr hInst, string lpszExeFileName, int nIconIndex);

            [DllImport("shell32.dll", CharSet=CharSet.Auto)]
            public static extern uint ExtractIconEx(string szFileName, int nIconIndex, 
                IntPtr[] phiconLarge, IntPtr[] phiconSmall, uint nIcons);



        }

        public class User32
        {
            [DllImport("user32.dll", SetLastError = true)]
            [return: MarshalAs(UnmanagedType.Bool)]
            public static extern bool DestroyIcon(IntPtr hIcon);
        }
    }
}
